
<%
response.setStatus(403);

//获取异常类
Throwable ex = Exceptions.getThrowable(request);

// 如果是异步请求或是手机端，则直接返回信息
if (Servlets.isAjaxRequest(request)) {
	if (ex!=null && StringUtils.startsWith(ex.getMessage(), "msg:")){
		out.print(StringUtils.replace(ex.getMessage(), "msg:", ""));
	}else{
		out.print("操作权限不足.");
	}
}

//输出异常信息页面
else {
%>
<%@page import="com.chain.qs.common.web.Servlets"%>
<%@page import="com.chain.qs.common.utils.Exceptions"%>
<%@page import="com.chain.qs.common.utils.StringUtils"%>
<%@page contentType="text/html;charset=UTF-8" isErrorPage="true"%>
<%@include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<title>403 - 操作权限不足</title>
	<%@include file="/WEB-INF/views/include/nhead.jsp" %>
	<link href="${ctxStatic}/lightblue/css/application.css" rel="stylesheet">
</head>
<body class="background-dark">
<div class="body body-row">
	<div class="error-container "></div>
		<div class="errorMessage btn1">
			<main class="row">
				<h1 class=" col-xs-12  col-lg-4 error-codes">403<span class="error-cod">  操作权限不足！</span></h1>
			</main>
			<%
				if (ex!=null && StringUtils.startsWith(ex.getMessage(), "msg:")){
					out.print("<div>"+StringUtils.replace(ex.getMessage(), "msg:", "")+" <br/> <br/></div>");
				}
			%>
			<main class="text-align-center">
				<div class="row">
					<div class="col-lg-12 form-actions form-width">
						<a href="javascript:" onclick="history.go(-1);" class="btn btn-blues">返回上一页</a></div>
				</div>
			</main>
		</div>
</div>
<script>
	$(document).ready(function(){
		$("#btn2").click(function(){
			$(".btn2").show();
			$(".btn1").hide();
		});
	});
</script>
</body>
</html>
<%
	} out = pageContext.pushBody();
%>